/**
 * 
 */
package metalink.admin;

import java.util.ArrayList;

import model.admin.HostelMo;

import com.opensymphony.xwork2.ActionSupport;

import vo.CollegeResidentialVo;

/**
 * @author Sony
 *
 */
public class GetHostelList extends ActionSupport{
	ArrayList<CollegeResidentialVo> hostelList;
	public String execute()
	{
		hostelList=new ArrayList<CollegeResidentialVo>();
		HostelMo mo = new HostelMo();
		try {
			hostelList=mo.hostelList();
		} catch (Exception e) {
			addActionError(e.getMessage());
		}
		return SUCCESS;
		
	}
	public ArrayList<CollegeResidentialVo> getHostelList() {
		return hostelList;
	}
	public void setHostelList(ArrayList<CollegeResidentialVo> hostelList) {
		this.hostelList = hostelList;
	}
}
